<div class="site-nav-bg">
    <div class="site-nav w1200">
        <p class="sn-back-home">
            <i class="layui-icon layui-icon-home"></i>
            <a href="/index">首页</a>
        </p>
            <div class="mymenu">
                {{ if .Username}}
                    <div class="layui-nav mynav">
                        <div class="login layui-nav-item " >
                            <a href="/home" class="myuser"><span style="color: #0C0C0C">你好 {{.Username }}</span></a>
                            <dl class="layui-nav-child">
                                <dd><a href="">我的主页</a></dd>
                                <dd><a href="">我的订单</a></dd>
                                <dd><a href="/logout">退出登录</a></dd>
                            </dl>
                        </div>

                    </div>
                    <div class="sp-cart"><a href="shopcart">购物车</a><span>2</span></div>
                {{else}}
                    <div class="layui-nav mynav">
                        <div class="login layui-nav-item " >
                            <a href="/login" class="myuser"><span style="color: #0C0C0C">登录</span></a>
                        </div>
                    </div>
                    <div class="sp-cart"><a href="shopcart">购物车</a><span>2</span></div>
                {{end}}
            </div>
    </div>
</div>
